<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>图书管理系统</title>
  <!-- 引入bootstrap.css -->
  <link rel="stylesheet" href="../../lib/bootstrap/dist/css/bootstrap.min.css">
  <!-- 公共 -->
  <link rel="stylesheet" href="../../css/base.css">
  <link rel="stylesheet" href="./index.css">
</head>

<body>
  <nav class="navbar navbar-expand-lg bg-body-tertiary">
    <div class="container-fluid">
      <!-- <a class="navbar-brand" href="#">Navbar</a> -->
      <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavAltMarkup"
        aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
      </button>
      <div class="collapse navbar-collapse" id="navbarNavAltMarkup">
        <div class="navbar-nav">

          <a class="nav-link" href="../main">首页</a>
          <a class="nav-link" href="../search">搜索</a>
          <a class="nav-link" href="../borrow">借阅</a>
          <a class="nav-link" href="../people">个人</a>
          <a class="nav-link" href="../detail">图书详情</a>
          <a class="nav-link" href="../login">退出</a>

        </div>
      </div>
    </div>
  </nav>


  <!-- 轮播图 -->
  <div id="carouselExampleFade" class="carousel slide carousel-fade big" data-bs-ride="carousel">
    <div class="carousel-inner">
      <div class="carousel-item active">
          <img src="../../assets/book1.jpg" class="d-block w-100" alt="Image 1">
      </div>
      <div class="carousel-item">
        <img src="../../assets/book2.jpg" class="d-block w-100" alt="Image 2">
      </div>
      <div class="carousel-item">
        <img src="../../assets/book3.jpg" class="d-block w-100" alt="Image 3">
      </div>
    </div>

</body>
<script src="../../lib/axios/dist/axios.min.js"></script>
<!-- 引入Bootstrap JS和Popper -->
<script src="../../lib/bootstrap/dist/js/bootstrap.min.js"></script>

<!-- 定时器控制轮播图自动播放 -->
<script>
  // 自动播放轮播图
  setInterval(function () {
    const carousel = new bootstrap.Carousel(document.getElementById('carouselExampleFade'));
    carousel.next();  // 自动切换到下一张图片
  }, 5000); // 每3秒切换一次
</script>

</html>